package com.etc.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * fx_musician
 * @author 
 */
public class FxMusician implements Serializable {
    private Integer id;

    private String musicianname;

    private String musicianpwd;

    private String musiciangenres;

    private String type;

    private String url;

    private Date registerdate;

    private String introduce;

    private Integer status;

    private static final long serialVersionUID = 1L;

    public FxMusician() {
    }

    public FxMusician(Integer id, String musicianname, String musicianpwd, String musiciangenres, String type, Date registerdate, String introduce, Integer status) {
        this.id = id;
        this.musicianname = musicianname;
        this.musicianpwd = musicianpwd;
        this.musiciangenres = musiciangenres;
        this.type = type;
        this.url = url;
        this.registerdate = registerdate;
        this.introduce = introduce;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMusicianname() {
        return musicianname;
    }

    public void setMusicianname(String musicianname) {
        this.musicianname = musicianname;
    }

    public String getMusicianpwd() {
        return musicianpwd;
    }

    public void setMusicianpwd(String musicianpwd) {
        this.musicianpwd = musicianpwd;
    }

    public String getMusiciangenres() {
        return musiciangenres;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setMusiciangenres(String musiciangenres) {
        this.musiciangenres = musiciangenres;
    }

    public Date getRegisterdate() {
        return registerdate;
    }

    public void setRegisterdate(Date registerdate) {
        this.registerdate = registerdate;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FxMusician other = (FxMusician) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMusicianname() == null ? other.getMusicianname() == null : this.getMusicianname().equals(other.getMusicianname()))
            && (this.getMusicianpwd() == null ? other.getMusicianpwd() == null : this.getMusicianpwd().equals(other.getMusicianpwd()))
            && (this.getMusiciangenres() == null ? other.getMusiciangenres() == null : this.getMusiciangenres().equals(other.getMusiciangenres()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getRegisterdate() == null ? other.getRegisterdate() == null : this.getRegisterdate().equals(other.getRegisterdate()))
            && (this.getIntroduce() == null ? other.getIntroduce() == null : this.getIntroduce().equals(other.getIntroduce()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMusicianname() == null) ? 0 : getMusicianname().hashCode());
        result = prime * result + ((getMusicianpwd() == null) ? 0 : getMusicianpwd().hashCode());
        result = prime * result + ((getMusiciangenres() == null) ? 0 : getMusiciangenres().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getRegisterdate() == null) ? 0 : getRegisterdate().hashCode());
        result = prime * result + ((getIntroduce() == null) ? 0 : getIntroduce().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", musicianname=").append(musicianname);
        sb.append(", musicianpwd=").append(musicianpwd);
        sb.append(", musiciangenres=").append(musiciangenres);
        sb.append(", type=").append(type);
        sb.append(", url=").append(url);
        sb.append(", registerdate=").append(registerdate);
        sb.append(", introduce=").append(introduce);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}